<?
require_once ('../../models/Users.php');
$results = Users::GetAll($tb ='Customer');
?>
<!DOCTYPE html>
<html lang="en">
	<? include('../../inc/header.php'); ?>
	<body>
		<div>
			<? include('../../inc/nav.php'); ?>

			<div id="content">
				<h3>Customer Table</h3>
				<table class="table table-bordered table-condensed table-hover table-striped">
		
					<tr>
						<th>Name</th><th>DOB</th><th>Adress</th><th>Phone_Number</th><th>Actions</th>
					</tr>
		
					<? while($row = $results->fetch_assoc()): ?>
						<tr>
							<td><?=$row['Cust_Name']?></td><td><?=$row['Cust_DOB']?></td><td><?=$row['Cust_BillingAdress']?></td><td><?=$row['Cust_PhoneNum']?></td>
							<td>
								<a href="details.php?id=<?=$row['id']?>">Details</a>
								<a href="edit.php?id=<?=$row['id']?>">Edit</a>
								<a href="delete.php?id=<?=$row['id']?>">Delete</a>
							</td>					
						</tr>
					<? endwhile; ?>
					
				</table>
				
			</div>
			<div id="content">
				<h3>Administrator Table</h3>
				<table class="table table-bordered table-condensed table-hover table-striped">
		
					<tr>
						<th>Id</th><th>Actions</th>
					</tr>
		
					<? while($row = $results->fetch_assoc()): ?>
						<tr>
							<td><?=$row['id']?></td>
							<td>
								<a href="details.php?id=<?=$row['id']?>">Details</a>
								<a href="edit.php?id=<?=$row['id']?>">Edit</a>
								<a href="delete.php?id=<?=$row['id']?>">Delete</a>
							</td>					
						</tr>
					<? endwhile; ?>
					
				</table>
				
			</div>
			<div id="content">
				<h3>Session Manager Table</h3>
				<table class="table table-bordered table-condensed table-hover table-striped">
		
					<tr>
						<th>Id</th><th>Actions</th>
					</tr>
		
					<? while($row = $results->fetch_assoc()): ?>
						<tr>
							<td><?=$row['id']?></td>
							<td>
								<a href="details.php?id=<?=$row['id']?>">Details</a>
								<a href="edit.php?id=<?=$row['id']?>">Edit</a>
								<a href="delete.php?id=<?=$row['id']?>">Delete</a>
							</td>					
						</tr>
					<? endwhile; ?>
					
				</table>
				
			</div>
			<div id="content">
				<h3>Department Table</h3>
				<table class="table table-bordered table-condensed table-hover table-striped">
		
					<tr>
						<th>Id</th><th>Actions</th>
					</tr>
		
					<? while($row = $results->fetch_assoc()): ?>
						<tr>
							<td><?=$row['id']?></td>
							<td>
								<a href="details.php?id=<?=$row['id']?>">Details</a>
								<a href="edit.php?id=<?=$row['id']?>">Edit</a>
								<a href="delete.php?id=<?=$row['id']?>">Delete</a>
							</td>					
						</tr>
					<? endwhile; ?>
					
				</table>
				
			</div>
			<div id="content">
				<h3>Category Table</h3>
				<table class="table table-bordered table-condensed table-hover table-striped">
		
					<tr>
						<th>Id</th><th>Actions</th>
					</tr>
		
					<? while($row = $results->fetch_assoc()): ?>
						<tr>
							<td><?=$row['id']?></td>
							<td>
								<a href="details.php?id=<?=$row['id']?>">Details</a>
								<a href="edit.php?id=<?=$row['id']?>">Edit</a>
								<a href="delete.php?id=<?=$row['id']?>">Delete</a>
							</td>					
						</tr>
					<? endwhile; ?>
					
				</table>
				
			</div>
			<div id="content">
				<h3>Product Table</h3>
				<table class="table table-bordered table-condensed table-hover table-striped">
		
					<tr>
						<th>Id</th><th>Actions</th>
					</tr>
		
					<? while($row = $results->fetch_assoc()): ?>
						<tr>
							<td><?=$row['id']?></td>
							<td>
								<a href="details.php?id=<?=$row['id']?>">Details</a>
								<a href="edit.php?id=<?=$row['id']?>">Edit</a>
								<a href="delete.php?id=<?=$row['id']?>">Delete</a>
							</td>					
						</tr>
					<? endwhile; ?>
					
				</table>
				
			</div>
			<div id="content">
				<h3>Order Table</h3>
				<table class="table table-bordered table-condensed table-hover table-striped">
		
					<tr>
						<th>Id</th><th>Actions</th>
					</tr>
		
					<? while($row = $results->fetch_assoc()): ?>
						<tr>
							<td><?=$row['id']?></td>
							<td>
								<a href="details.php?id=<?=$row['id']?>">Details</a>
								<a href="edit.php?id=<?=$row['id']?>">Edit</a>
								<a href="delete.php?id=<?=$row['id']?>">Delete</a>
							</td>					
						</tr>
					<? endwhile; ?>
					
				</table>
				
			</div>
			<div id="content">
				<h3>Order Details Table</h3>
				<table class="table table-bordered table-condensed table-hover table-striped">
		
					<tr>
						<th>Id</th><th>Actions</th>
					</tr>
		
					<? while($row = $results->fetch_assoc()): ?>
						<tr>
							<td><?=$row['id']?></td>
							<td>
								<a href="details.php?id=<?=$row['id']?>">Details</a>
								<a href="edit.php?id=<?=$row['id']?>">Edit</a>
								<a href="delete.php?id=<?=$row['id']?>">Delete</a>
							</td>					
						</tr>
					<? endwhile; ?>
					
				</table>
				
			</div>
			<div id="content">
				<h3>Shipping Info Table</h3>
				<table class="table table-bordered table-condensed table-hover table-striped">
		
					<tr>
						<th>Id</th><th>Actions</th>
					</tr>
		
					<? while($row = $results->fetch_assoc()): ?>
						<tr>
							<td><?=$row['id']?></td>
							<td>
								<a href="details.php?id=<?=$row['id']?>">Details</a>
								<a href="edit.php?id=<?=$row['id']?>">Edit</a>
								<a href="delete.php?id=<?=$row['id']?>">Delete</a>
							</td>					
						</tr>
					<? endwhile; ?>
					
				</table>
				
			</div>
			<div id="content">
				<h3>Shopping Cart Table</h3>
				<table class="table table-bordered table-condensed table-hover table-striped">
		
					<tr>
						<th>Id</th><th>Actions</th>
					</tr>
		
					<? while($row = $results->fetch_assoc()): ?>
						<tr>
							<td><?=$row['id']?></td>
							<td>
								<a href="details.php?id=<?=$row['id']?>">Details</a>
								<a href="edit.php?id=<?=$row['id']?>">Edit</a>
								<a href="delete.php?id=<?=$row['id']?>">Delete</a>
							</td>					
						</tr>
					<? endwhile; ?>
					
				</table>
				
			</div>
			<? include('../../inc/footer.php'); ?>
		</div>
	</body>
</html>